package com.lhq.business.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.lhq.common.annotation.Excel;
import com.lhq.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 图书对象 lhq_book
 *
 * @author lhq
 * @date 2024-05-11
 */
@TableName("lhq_book")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Book extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 书籍id */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /** 作者 */
    @Excel(name = "作者")
    @TableField("author")
    private String author;
    /** 状态：连载中、已完结 */
    @Excel(name = "状态：连载中、已完结")
    @TableField("status")
    private String status;
    /** 类型：小说，其他书籍 */
    @Excel(name = "类型：小说，其他书籍")
    @TableField("type")
    private String type;
    /** 书籍名称 */
    @Excel(name = "书籍名称")
    @TableField("title")
    private String title;
    /** 描述 */
    @Excel(name = "描述")
    @TableField("`desc`")
    private String desc;
    /** 封面 */
    @Excel(name = "封面")
    @TableField("img")
    private String img;
    /** 分类：武侠、仙侠 */
    @Excel(name = "分类：武侠、仙侠")
    @TableField("category")
    private String category;
    /** 书名 */
    @Excel(name = "书名")
    @TableField("book_name")
    private String bookName;
    /** 章节数 */
    @TableField(exist = false)
    private Integer chapterCnt;
    /** 删除标志（0代表存在 */
    @TableLogic(value = "0", delval = "1")
    private String delFlag;

}
